import { request } from 'umi';

/**  list 记录  POST */
export async function exportPageTophubRecord(options?: any) {
  return request<BaseResponseBean.responsePage<TophubExporData.ExportRecordSo[]>>(
    '/tophub/record/export/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**  导出 Excel 记录  POST */
export async function exportExcel(options?: any) {
  return request<BaseResponseBean.response<string>>('/tophub/record/export/excel', {
    method: 'POST',
    data: options || {},
    responseType: 'blob',
  });
}



/**  list 记录  POST */
export async function exportPageTophubRecordWeChat(options?: any) {
  return request<BaseResponseBean.responsePage<TophubExporData.ExportRecordSo[]>>(
    '/tophub/record/wechat/export/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**  导出 Excel 记录  POST */
export async function exportExcelWeChat(options?: any) {
  return request<BaseResponseBean.response<string>>('/tophub/record/wechat/export/excel', {
    method: 'POST',
    data: options || {},
    responseType: 'blob',
  });
}